package com.foreverwin.mes.production.service;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.base.FrontPage;
import com.foreverwin.mes.meapi.model.Certification;
import com.foreverwin.mes.production.model.StationCertification;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author syngna
 * @since 2018-11-29
 */
public interface StationCertificationService extends IService<StationCertification> {

    /**
     * 分页查询
     *
     * @param frontPage
     * @return
     */
    Page<StationCertification> selectPage(FrontPage<StationCertification> frontPage);

    List<StationCertification> selectList();

    List<Certification> getCertificationList(String stationBo);

    /**
     * 删除岗位下证明
     *
     * @param stationBo
     * @return
     */
    int deleteCertificationByStation(String stationBo);

    /**
     * 批量新增分配的证明
     *
     * @param list
     * @return
     */
    int addCertificationForStation(List<StationCertification> list);
}